package org.demo.config;

import org.springframework.http.server.RequestPath;
import org.springframework.http.server.reactive.HttpHandler;
import org.springframework.http.server.reactive.ServerHttpRequest;
import org.springframework.http.server.reactive.ServerHttpResponse;
import reactor.core.publisher.Mono;

/**
 * @author dingshenzhen
 */
public class MyHandler implements HttpHandler {
    @Override
    public Mono<Void> handle(ServerHttpRequest request, ServerHttpResponse response) {
        RequestPath path = request.getPath();
        String pathValue = path.value();
        System.out.println(pathValue);
        return Mono.empty();
    }
}
